import {
	request
} from '@/utils/request.js'
//获取订单
export const reqGetOrders = () => request({
	url: '/orders',
	method: 'get'
})
// //获取商品
// export const reqGetGoods = () => request({
// 	url: '/goods',
// 	method: 'get'
// })

//添加订单
export const reqAddOrder = (data) => request({
	url: '/orders',
	method: 'post',
	data
})

//根据手机号查询（分页）
export const reqGetOrdersByPhone = (currentPage, size, phone) => request({
	url: `/orders/pageByPhone/${currentPage}/${size}/${phone}`,
	method: 'get'
})
